import React, { lazy } from 'react';
import { useRoutes } from 'react-router-dom';

import Home from '../pages/Home/index';
import offLineDetail from '../pages/Banner/offLineDetail';

export function MainRoutes() {
  const elements = useRoutes([
    {
      path: '/',
      element: Home
    },
    {
      path: '/detail',
      element: offLineDetail
    }
  ]);

  return elements;
}
